package xuanzhen.manage.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import xuanzhen.manage.dao.AdminsMapper;
import xuanzhen.manage.pojo.Admins;
import xuanzhen.manage.service.AdminsService;
@Service
public class AdminsServiceImpl implements AdminsService {
	@Resource
	AdminsMapper adminsMapper;
	@Override
	public int login(Admins admin) throws Exception {
		if(adminsMapper.login(admin)!=null){
			return 1;
		}
		return 0;
	}

	@Override
	public int delete(Admins admin) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(Admins admin) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

}
